import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import store from './store/index'
import router from './router/index'
import axios from 'axios'
import {nanoid} from  'nanoid'
Vue.prototype.$http = axios
import {Button, Form, FormItem, Input, Checkbox, Image,Table,TableColumn,Dialog,Alert,Drawer,
RadioGroup,Radio,Descriptions,DescriptionsItem,Tag,Upload,Avatar,Header,Aside,Col,ButtonGroup,
Card,Container,Main,Row,Divider,Pagination} from 'element-ui'
Vue.component(Table.name, Table)
Vue.component(TableColumn.name, TableColumn)
Vue.component(Button.name, Button)
Vue.component(Form.name, Form)
Vue.component(FormItem.name, FormItem)
Vue.component(Input.name, Input)
Vue.component(Checkbox.name, Checkbox)
Vue.component(Image.name, Image)
Vue.component(Dialog.name, Dialog)
Vue.component(Alert.name, Alert)
Vue.component(Drawer.name, Drawer)
Vue.component(RadioGroup.name, RadioGroup)
Vue.component(Radio.name, Radio)
Vue.component(Descriptions.name, Descriptions)
Vue.component(DescriptionsItem.name, DescriptionsItem)
Vue.component(Tag.name, Tag)
Vue.component(Upload.name, Upload)
Vue.component(Avatar.name, Avatar)
Vue.component(Header.name, Header)
Vue.component(Aside.name, Aside)
Vue.component(Col.name, Col)
Vue.component(ButtonGroup.name, ButtonGroup)
Vue.component(Card.name, Card)
Vue.component(Container.name, Container)
Vue.component(Main.name, Main)
Vue.component(Row.name, Row)
Vue.component(Divider.name, Divider)
Vue.component(Pagination.name, Pagination)
Vue.use(VueRouter)

new Vue({
  render: h => h(App),
  store,
  router:router
}).$mount('#app')


